package cn.org.timespace.easyframe.service.permission;

import java.util.List;

import cn.org.timespace.easyframe.action.permission.EFUserModel;
import cn.org.timespace.easyframe.model.permission.EfUser;

/**
 * <p>
 * 登录认证接口
 * </p>
 * 
 * @version 1.0, 11/01/18
 * @since 1.0
 * @author wubo
 */

public interface EfUserService {
	
	//登录认证，认证通过返回True，认证失败返回False
	public EfUser authentication(EfUser efUser);
	
	public void save(EfUser transientInstance) ;

	public void delete(EfUser persistentInstance) ;
	
	public void deleteUser(EfUser user);

	public EfUser findById(java.lang.String id) ;
	
	//修改用户
	public void update(EfUser instance);
	
	//组合查询
	public List<EfUser> findByCondition(EFUserModel model);
	
	//根据用户账号查询用户
	public EfUser findByUserAccount(String userAccount);
	
	//修改用户密码
	public void updatePW(String userId,String newPW);		
	
	public void writeUserLogonLog(String msg,String userId,String ip);
}

